package abstractfactory

// aws工厂实现
type AwsFactory struct {
}

func (f *AwsFactory) CreateComputeResource(instanceType string) ComputeResource {
	return &AwsCompute{
		instanceType: instanceType,
	}
}

func (f *AwsFactory) CreateStorageResource(bucketName string) StorageResource {
	return &AwsStorage{
		bucketName: bucketName,
	}
}

func (f *AwsFactory) CreateNetworkResource(loadBalancerName string) NetworkResource {
	return &AwsNetwork{
		loadBalancerName: loadBalancerName,
	}
}
